package com.sooth.system.client.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import com.sooth.common.dream.annotation.IgnoreTenant;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 系统授权表
 * @Author: Lion Li
 * @Date: 2023-09-04 09:07:19
 */
@Data
@IgnoreTenant
@Table("sys_client")
public class SysClient {


    /**
     * id
     */
    @Id
    @Column(value = "id", jdbcType = Types.BIGINT)
    private Long id;

    /**
     * 客户端key
     */
    @Column(value = "client_key", jdbcType = Types.VARCHAR)
    private String clientKey;

    /**
     * 客户端秘钥
     */
    @Column(value = "client_secret", jdbcType = Types.VARCHAR)
    private String clientSecret;

    /**
     * 设备类型
     */
    @Column(value = "device_type", jdbcType = Types.VARCHAR)
    private String deviceType;

    /**
     * token活跃超时时间
     */
    @Column(value = "active_timeout", jdbcType = Types.INTEGER)
    private Integer activeTimeout;

    /**
     * token固定超时
     */
    @Column(value = "timeout", jdbcType = Types.INTEGER)
    private Integer timeout;

    /**
     * 状态（0正常 1停用）
     */
    @Column(value = "status", jdbcType = Types.INTEGER)
    private Integer status;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Column(value = "del_flag", jdbcType = Types.INTEGER)
    private Integer delFlag;

    /**
     * 创建者
     */
    @Column(value = "create_by", jdbcType = Types.BIGINT)
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by", jdbcType = Types.BIGINT)
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date updateTime;
}
